package com.by.zhdoctor.repository;

import com.by.zhdoctor.domain.Question;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.*;

import java.util.List;

/**
 * Spring Data JPA repository for the Question entity.
 */
@SuppressWarnings("unused")
public interface QuestionRepository extends JpaRepository<Question,Long> {
    Page<Question> findByanswer(String answer, Pageable pageable);
    Page<Question> findBycreater(String answer, Pageable pageable);
}
